package fatboy.hypeerweb;

import org.junit.Assert;
import org.junit.Test;



public class TestEdgeNodeState {
	/**
	 * test returns on getters
	 */
	@Test
	public void testGetters(){
		Connection web = new Connection();
		web.addNode("first");
		web.addNode("second");
		Node testing = web.addNode("third");
		NodeState test = testing.getNodeState();
		Assert.assertFalse(test.hasEdgeChild(testing));
		Assert.assertTrue(test.hasParent(testing));
		Assert.assertEquals(1, test.getFirstUpDownNodeAddress(testing).hashCode());
		
	}
}
